Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 1 - Introduction to QuickDraw 3D / QuickDraw 3D Reference
QuickDraw 3D Routines / Managing Sets


Q3Set_Add

You can use the Q3Set_Add function to add an element to a set.

TQ3Status Q3Set_Add (
TQ3SetObject set, 
TQ3ElementType type, 
const void *data);
set
A set object.
type
An element type.
data
A pointer to the element's data.
DESCRIPTION
The Q3Set_Add function adds the element specified by the type and data parameters to the set specified by the set parameter. The set must already exist when you call Q3Set_Add. Note that the element data is copied into the set. Accordingly, you can reuse the data parameter once you have called Q3Set_Add.

If the specified element type is a custom element type, Q3Set_Add uses the custom type's kQ3MethodTypeElementCopyAdd or kQ3MethodTypeElementCopyReplace custom methods. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996